checkpatch: ignore request to use ether_addr_copy()
authorStephen Warren <[email protected]>
Fri, 13 Nov 2015 16:03:00 +0000 (09:03 -0700)
committerTom Rini <[email protected]>
Mon, 25 Jan 2016 16:17:52 +0000 (11:17 -0500)
The Linux kernel, from which checkpatch originates, contains function
ether_addr_copy() to copy Ethernet MAC addresses, and checkpatch warns
that it should be used in preference to memcpy() where appropriate.
U-Boot doesn't contain ether_addr_copy(), so tell checkpatch not to issue
this warning.

Signed-off-by: Stephen Warren <[email protected]>
Reviewed-by: Marek Vasut <[email protected]>
Acked-by: Joe Hershberger <[email protected]>
Tested-by: Anand Moon <[email protected]>
Reviewed-by: Anand Moon <[email protected]>
.checkpatch.conf

index 35167e12015b202a910be77ed075af4dd8425b12..d1d32fac9db5314562db5ecd60ae907a5386ba79 100644 (file)
@@ -21,3 +21,7 @@
 
 # Ignore networking block comment style
 --ignore NETWORKING_BLOCK_COMMENT_STYLE
+
+# Ignore "WARNING: Prefer ether_addr_copy() over memcpy() if the Ethernet
+# addresses are __aligned(2)".
+--ignore PREFER_ETHER_ADDR_COPY